﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KhachSan.Process.Private.Bo
{
    public partial class UC_DongHo_JAPAN : UserControl
    {
        public UC_DongHo_JAPAN()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            try
            {
                TimeZone localZone = TimeZone.CurrentTimeZone;
                DateTime currentDate = DateTime.Now;
                DateTime currentUTC = localZone.ToUniversalTime(currentDate);
                int hour = currentUTC.Hour + 9;
                if (hour >24)
                    hour = hour - 24;
                this.gio1.Image = danhSachSo.Images[hour / 10];
                this.gio2.Image = danhSachSo.Images[hour % 10];
                this.phut1.Image = danhSachSo.Images[currentUTC.Minute / 10];
                this.phut2.Image = danhSachSo.Images[currentUTC.Minute % 10];
            }
            catch { }
         
        }

    
    }
}
